package visual;

import javax.swing.JPanel;
import java.awt.Frame;
import java.awt.BorderLayout;
import javax.swing.JDialog;

public abstract class FormularioBase extends JDialog {

	private int id;
	private static final long serialVersionUID = 1L;
	
	public abstract void carregaFormulario();
	public abstract void salvaFormulario();
	public abstract void apagarFormulario();
	public abstract void configuraNovo();
	public abstract void configuraEdicao();
	/**
	 * @param owner
	 */
	public FormularioBase(Frame owner) {
		super(owner);
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(300, 200);
		this.setResizable(false);
		this.setTitle("Formulário base");
		this.setModal(true);
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	

}
